package com.yc.cloudvideo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author LYYT
 * @since 2022-08-03
 */
public class User implements Serializable {

    private static final long serialVersionUID = 1L;



      @TableId(value = "uid", type = IdType.AUTO)
      private Long uid;
    private String head;

    public String getHead() {
        return head;
    }

    public void setHead(String head) {
        this.head = head;
    }



      /**
     * 昵称
     */
      private String nickName;

      /**
     * 签名
     */
      private String sign;

    private String email;

    private String password;

      /**
     * 1：男 ；0：女
     */
      private Boolean isBoy;

    private Integer age;

    private LocalDate regTime;

      /**
     * 伪注销
     */
      private Boolean exist;

      /**
     * 封禁时间
     */
      private LocalDateTime banTime;

      /**
     * 系统超级管理员
     */
      private Boolean root;

      /**
     * 暂时不用
     */
      private Boolean vip;

      private String salt;
      private String confirmCode;
      private LocalDateTime activationTime;

    public Boolean getBoy() {
        return isBoy;
    }

    public void setBoy(Boolean boy) {
        isBoy = boy;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getconfirmCode() {
        return confirmCode;
    }

    public void setconfirmCode(String confirmCode) {
        this.confirmCode = confirmCode;
    }

    public LocalDateTime getActivationTime() {
        return activationTime;
    }

    public void setActivationTime(LocalDateTime activationTime) {
        this.activationTime = activationTime;
    }

    public Long getUid() {
        return uid;
    }

      public void setUid(Long uid) {
          this.uid = uid;
      }

    
    public String getNickName() {
        return nickName;
    }

      public void setNickName(String nickName) {
          this.nickName = nickName;
      }
    
    public String getSign() {
        return sign;
    }

      public void setSign(String sign) {
          this.sign = sign;
      }
    
    public String getEmail() {
        return email;
    }

      public void setEmail(String email) {
          this.email = email;
      }
    
    public String getPassword() {
        return password;
    }

      public void setPassword(String password) {
          this.password = password;
      }
    
    public Boolean getIsBoy() {
        return isBoy;
    }

      public void setIsBoy(Boolean isBoy) {
          this.isBoy = isBoy;
      }
    
    public Integer getAge() {
        return age;
    }

      public void setAge(Integer age) {
          this.age = age;
      }
    
    public LocalDate getRegTime() {
        return regTime;
    }

      public void setRegTime(LocalDate regTime) {
          this.regTime = regTime;
      }
    
    public Boolean getExist() {
        return exist;
    }

      public void setExist(Boolean exist) {
          this.exist = exist;
      }
    
    public LocalDateTime getBanTime() {
        return banTime;
    }

      public void setBanTime(LocalDateTime banTime) {
          this.banTime = banTime;
      }
    
    public Boolean getRoot() {
        return root;
    }

      public void setRoot(Boolean root) {
          this.root = root;
      }
    
    public Boolean getVip() {
        return vip;
    }

      public void setVip(Boolean vip) {
          this.vip = vip;
      }

    @Override
    public String toString() {
        return "User{" +
              "uid=" + uid +
                  ", head=" + head +
                  ", nickName=" + nickName +
                  ", sign=" + sign +
                  ", email=" + email +
                  ", password=" + password +
                  ", isBoy=" + isBoy +
                  ", age=" + age +
                  ", regTime=" + regTime +
                  ", exist=" + exist +
                  ", banTime=" + banTime +
                  ", root=" + root +
                  ", vip=" + vip +
              "}";
    }
}
